package com.chukun.interview.feature.inf.impl;

import com.chukun.interview.feature.inf.base.AbstractShape;

/**
 * 长方形类
 */
public class ExtendRectangle extends AbstractShape {

    public final double length;
    public final double width;

    public ExtendRectangle(String id, double length, double width) {
        super(id);
        this.length = length;
        this.width = width;
    }

    @Override
    public double area() {
        return length * width;
    }
}